<template>
    <div class="like">
        <my-head title="我的点赞" ></my-head>
        <div >
            <div class="item" v-for="(l,i) in mylikes" :key='i'>
                <img v-lazy="l.good.img" alt="">
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            mylikes:[]
        }
    },
    mounted(){
        this.getMyLikes()
    },
    methods:{
        async getMyLikes(){
            let res = await this.$ajax.getLikes({
                username:this.userInfo.username,
            })
            this.mylikes = res;
        },
    }
}
</script>